<?php
$tdatacompany_addresses=array();
	$tdatacompany_addresses[".NumberOfChars"]=80; 
	$tdatacompany_addresses[".ShortName"]="company_addresses";
	$tdatacompany_addresses[".OwnerID"]="";
	$tdatacompany_addresses[".OriginalTable"]="company_addresses";


	
//	field labels
$fieldLabelscompany_addresses = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelscompany_addresses["English"]=array();
	$fieldToolTipscompany_addresses["English"]=array();
	$fieldLabelscompany_addresses["English"]["id"] = "Id";
	$fieldToolTipscompany_addresses["English"]["id"] = "";
	$fieldLabelscompany_addresses["English"]["code"] = "Code";
	$fieldToolTipscompany_addresses["English"]["code"] = "";
	$fieldLabelscompany_addresses["English"]["company_name"] = "Company Name";
	$fieldToolTipscompany_addresses["English"]["company_name"] = "";
	$fieldLabelscompany_addresses["English"]["category"] = "Category";
	$fieldToolTipscompany_addresses["English"]["category"] = "";
	$fieldLabelscompany_addresses["English"]["address"] = "Address";
	$fieldToolTipscompany_addresses["English"]["address"] = "";
	$fieldLabelscompany_addresses["English"]["pin_code"] = "Pin Code";
	$fieldToolTipscompany_addresses["English"]["pin_code"] = "";
	$fieldLabelscompany_addresses["English"]["phone1"] = "Phone1";
	$fieldToolTipscompany_addresses["English"]["phone1"] = "";
	$fieldLabelscompany_addresses["English"]["phone2"] = "Phone2";
	$fieldToolTipscompany_addresses["English"]["phone2"] = "";
	$fieldLabelscompany_addresses["English"]["fax1"] = "Fax1";
	$fieldToolTipscompany_addresses["English"]["fax1"] = "";
	$fieldLabelscompany_addresses["English"]["fax2"] = "Fax2";
	$fieldToolTipscompany_addresses["English"]["fax2"] = "";
	$fieldLabelscompany_addresses["English"]["email"] = "Email";
	$fieldToolTipscompany_addresses["English"]["email"] = "";
	$fieldLabelscompany_addresses["English"]["website"] = "Website";
	$fieldToolTipscompany_addresses["English"]["website"] = "";
	$fieldLabelscompany_addresses["English"]["display_name"] = "Display Name";
	$fieldToolTipscompany_addresses["English"]["display_name"] = "";
	$fieldLabelscompany_addresses["English"]["city_code"] = "City Code";
	$fieldToolTipscompany_addresses["English"]["city_code"] = "";
	$fieldLabelscompany_addresses["English"]["city_name"] = "City Name";
	$fieldToolTipscompany_addresses["English"]["city_name"] = "";
	$fieldLabelscompany_addresses["English"]["state_code"] = "State Code";
	$fieldToolTipscompany_addresses["English"]["state_code"] = "";
	$fieldLabelscompany_addresses["English"]["state_name"] = "State Name";
	$fieldToolTipscompany_addresses["English"]["state_name"] = "";
	$fieldLabelscompany_addresses["English"]["country_code"] = "Country Code";
	$fieldToolTipscompany_addresses["English"]["country_code"] = "";
	$fieldLabelscompany_addresses["English"]["country_name"] = "Country Name";
	$fieldToolTipscompany_addresses["English"]["country_name"] = "";
	$fieldLabelscompany_addresses["English"]["full_addr"] = "Full Addr";
	$fieldToolTipscompany_addresses["English"]["full_addr"] = "";
	$fieldLabelscompany_addresses["English"][""] = "";
	$fieldToolTipscompany_addresses["English"][""] = "";
	$fieldLabelscompany_addresses["English"][""] = "Company Addresses";
	$fieldToolTipscompany_addresses["English"][""] = "";
	$fieldLabelscompany_addresses["English"][""] = "";
	$fieldToolTipscompany_addresses["English"][""] = "";
	$fieldLabelscompany_addresses["English"][""] = "";
	$fieldToolTipscompany_addresses["English"][""] = "";
	if (count($fieldToolTipscompany_addresses["English"])){
		$tdatacompany_addresses[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Hong Kong S.A.R.)")
{
	$fieldLabelscompany_addresses["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldToolTipscompany_addresses["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldLabelscompany_addresses["Chinese (Hong Kong S.A.R.)"]["id"] = "Id";
	$fieldToolTipscompany_addresses["Chinese (Hong Kong S.A.R.)"]["id"] = "";
	$fieldLabelscompany_addresses["Chinese (Hong Kong S.A.R.)"]["code"] = "Code";
	$fieldToolTipscompany_addresses["Chinese (Hong Kong S.A.R.)"]["code"] = "";
	$fieldLabelscompany_addresses["Chinese (Hong Kong S.A.R.)"]["company_name"] = "Company Name";
	$fieldToolTipscompany_addresses["Chinese (Hong Kong S.A.R.)"]["company_name"] = "";
	$fieldLabelscompany_addresses["Chinese (Hong Kong S.A.R.)"]["category"] = "Category";
	$fieldToolTipscompany_addresses["Chinese (Hong Kong S.A.R.)"]["category"] = "";
	$fieldLabelscompany_addresses["Chinese (Hong Kong S.A.R.)"]["address"] = "Address";
	$fieldToolTipscompany_addresses["Chinese (Hong Kong S.A.R.)"]["address"] = "";
	$fieldLabelscompany_addresses["Chinese (Hong Kong S.A.R.)"]["pin_code"] = "Pin Code";
	$fieldToolTipscompany_addresses["Chinese (Hong Kong S.A.R.)"]["pin_code"] = "";
	$fieldLabelscompany_addresses["Chinese (Hong Kong S.A.R.)"]["phone1"] = "Phone1";
	$fieldToolTipscompany_addresses["Chinese (Hong Kong S.A.R.)"]["phone1"] = "";
	$fieldLabelscompany_addresses["Chinese (Hong Kong S.A.R.)"]["phone2"] = "Phone2";
	$fieldToolTipscompany_addresses["Chinese (Hong Kong S.A.R.)"]["phone2"] = "";
	$fieldLabelscompany_addresses["Chinese (Hong Kong S.A.R.)"]["fax1"] = "Fax1";
	$fieldToolTipscompany_addresses["Chinese (Hong Kong S.A.R.)"]["fax1"] = "";
	$fieldLabelscompany_addresses["Chinese (Hong Kong S.A.R.)"]["fax2"] = "Fax2";
	$fieldToolTipscompany_addresses["Chinese (Hong Kong S.A.R.)"]["fax2"] = "";
	$fieldLabelscompany_addresses["Chinese (Hong Kong S.A.R.)"]["email"] = "Email";
	$fieldToolTipscompany_addresses["Chinese (Hong Kong S.A.R.)"]["email"] = "";
	$fieldLabelscompany_addresses["Chinese (Hong Kong S.A.R.)"]["website"] = "Website";
	$fieldToolTipscompany_addresses["Chinese (Hong Kong S.A.R.)"]["website"] = "";
	$fieldLabelscompany_addresses["Chinese (Hong Kong S.A.R.)"]["display_name"] = "Display Name";
	$fieldToolTipscompany_addresses["Chinese (Hong Kong S.A.R.)"]["display_name"] = "";
	$fieldLabelscompany_addresses["Chinese (Hong Kong S.A.R.)"]["city_code"] = "City Code";
	$fieldToolTipscompany_addresses["Chinese (Hong Kong S.A.R.)"]["city_code"] = "";
	$fieldLabelscompany_addresses["Chinese (Hong Kong S.A.R.)"]["city_name"] = "City Name";
	$fieldToolTipscompany_addresses["Chinese (Hong Kong S.A.R.)"]["city_name"] = "";
	$fieldLabelscompany_addresses["Chinese (Hong Kong S.A.R.)"]["state_code"] = "State Code";
	$fieldToolTipscompany_addresses["Chinese (Hong Kong S.A.R.)"]["state_code"] = "";
	$fieldLabelscompany_addresses["Chinese (Hong Kong S.A.R.)"]["state_name"] = "State Name";
	$fieldToolTipscompany_addresses["Chinese (Hong Kong S.A.R.)"]["state_name"] = "";
	$fieldLabelscompany_addresses["Chinese (Hong Kong S.A.R.)"]["country_code"] = "Country Code";
	$fieldToolTipscompany_addresses["Chinese (Hong Kong S.A.R.)"]["country_code"] = "";
	$fieldLabelscompany_addresses["Chinese (Hong Kong S.A.R.)"]["country_name"] = "Country Name";
	$fieldToolTipscompany_addresses["Chinese (Hong Kong S.A.R.)"]["country_name"] = "";
	$fieldLabelscompany_addresses["Chinese (Hong Kong S.A.R.)"]["full_addr"] = "Full Addr";
	$fieldToolTipscompany_addresses["Chinese (Hong Kong S.A.R.)"]["full_addr"] = "";
	$fieldLabelscompany_addresses["Chinese (Hong Kong S.A.R.)"][""] = "";
	$fieldToolTipscompany_addresses["Chinese (Hong Kong S.A.R.)"][""] = "";
	$fieldLabelscompany_addresses["Chinese (Hong Kong S.A.R.)"][""] = "Company Addresses";
	$fieldToolTipscompany_addresses["Chinese (Hong Kong S.A.R.)"][""] = "";
	$fieldLabelscompany_addresses["Chinese (Hong Kong S.A.R.)"][""] = "";
	$fieldToolTipscompany_addresses["Chinese (Hong Kong S.A.R.)"][""] = "";
	$fieldLabelscompany_addresses["Chinese (Hong Kong S.A.R.)"][""] = "";
	$fieldToolTipscompany_addresses["Chinese (Hong Kong S.A.R.)"][""] = "";
	if (count($fieldToolTipscompany_addresses["Chinese (Hong Kong S.A.R.)"])){
		$tdatacompany_addresses[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Taiwan)")
{
	$fieldLabelscompany_addresses["Chinese (Taiwan)"]=array();
	$fieldToolTipscompany_addresses["Chinese (Taiwan)"]=array();
	$fieldLabelscompany_addresses["Chinese (Taiwan)"]["id"] = "Id";
	$fieldToolTipscompany_addresses["Chinese (Taiwan)"]["id"] = "";
	$fieldLabelscompany_addresses["Chinese (Taiwan)"]["code"] = "Code";
	$fieldToolTipscompany_addresses["Chinese (Taiwan)"]["code"] = "";
	$fieldLabelscompany_addresses["Chinese (Taiwan)"]["company_name"] = "Company Name";
	$fieldToolTipscompany_addresses["Chinese (Taiwan)"]["company_name"] = "";
	$fieldLabelscompany_addresses["Chinese (Taiwan)"]["category"] = "Category";
	$fieldToolTipscompany_addresses["Chinese (Taiwan)"]["category"] = "";
	$fieldLabelscompany_addresses["Chinese (Taiwan)"]["address"] = "Address";
	$fieldToolTipscompany_addresses["Chinese (Taiwan)"]["address"] = "";
	$fieldLabelscompany_addresses["Chinese (Taiwan)"]["pin_code"] = "Pin Code";
	$fieldToolTipscompany_addresses["Chinese (Taiwan)"]["pin_code"] = "";
	$fieldLabelscompany_addresses["Chinese (Taiwan)"]["phone1"] = "Phone1";
	$fieldToolTipscompany_addresses["Chinese (Taiwan)"]["phone1"] = "";
	$fieldLabelscompany_addresses["Chinese (Taiwan)"]["phone2"] = "Phone2";
	$fieldToolTipscompany_addresses["Chinese (Taiwan)"]["phone2"] = "";
	$fieldLabelscompany_addresses["Chinese (Taiwan)"]["fax1"] = "Fax1";
	$fieldToolTipscompany_addresses["Chinese (Taiwan)"]["fax1"] = "";
	$fieldLabelscompany_addresses["Chinese (Taiwan)"]["fax2"] = "Fax2";
	$fieldToolTipscompany_addresses["Chinese (Taiwan)"]["fax2"] = "";
	$fieldLabelscompany_addresses["Chinese (Taiwan)"]["email"] = "Email";
	$fieldToolTipscompany_addresses["Chinese (Taiwan)"]["email"] = "";
	$fieldLabelscompany_addresses["Chinese (Taiwan)"]["website"] = "Website";
	$fieldToolTipscompany_addresses["Chinese (Taiwan)"]["website"] = "";
	$fieldLabelscompany_addresses["Chinese (Taiwan)"]["display_name"] = "Display Name";
	$fieldToolTipscompany_addresses["Chinese (Taiwan)"]["display_name"] = "";
	$fieldLabelscompany_addresses["Chinese (Taiwan)"]["city_code"] = "City Code";
	$fieldToolTipscompany_addresses["Chinese (Taiwan)"]["city_code"] = "";
	$fieldLabelscompany_addresses["Chinese (Taiwan)"]["city_name"] = "City Name";
	$fieldToolTipscompany_addresses["Chinese (Taiwan)"]["city_name"] = "";
	$fieldLabelscompany_addresses["Chinese (Taiwan)"]["state_code"] = "State Code";
	$fieldToolTipscompany_addresses["Chinese (Taiwan)"]["state_code"] = "";
	$fieldLabelscompany_addresses["Chinese (Taiwan)"]["state_name"] = "State Name";
	$fieldToolTipscompany_addresses["Chinese (Taiwan)"]["state_name"] = "";
	$fieldLabelscompany_addresses["Chinese (Taiwan)"]["country_code"] = "Country Code";
	$fieldToolTipscompany_addresses["Chinese (Taiwan)"]["country_code"] = "";
	$fieldLabelscompany_addresses["Chinese (Taiwan)"]["country_name"] = "Country Name";
	$fieldToolTipscompany_addresses["Chinese (Taiwan)"]["country_name"] = "";
	$fieldLabelscompany_addresses["Chinese (Taiwan)"]["full_addr"] = "Full Addr";
	$fieldToolTipscompany_addresses["Chinese (Taiwan)"]["full_addr"] = "";
	$fieldLabelscompany_addresses["Chinese (Taiwan)"][""] = "";
	$fieldToolTipscompany_addresses["Chinese (Taiwan)"][""] = "";
	$fieldLabelscompany_addresses["Chinese (Taiwan)"][""] = "Company Addresses";
	$fieldToolTipscompany_addresses["Chinese (Taiwan)"][""] = "";
	$fieldLabelscompany_addresses["Chinese (Taiwan)"][""] = "";
	$fieldToolTipscompany_addresses["Chinese (Taiwan)"][""] = "";
	$fieldLabelscompany_addresses["Chinese (Taiwan)"][""] = "";
	$fieldToolTipscompany_addresses["Chinese (Taiwan)"][""] = "";
	if (count($fieldToolTipscompany_addresses["Chinese (Taiwan)"])){
		$tdatacompany_addresses[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="French")
{
	$fieldLabelscompany_addresses["French"]=array();
	$fieldToolTipscompany_addresses["French"]=array();
	if (count($fieldToolTipscompany_addresses["French"])){
		$tdatacompany_addresses[".isUseToolTips"]=true;
	}
}


	
	$tdatacompany_addresses[".NCSearch"]=true;

	

$tdatacompany_addresses[".shortTableName"] = "company_addresses";
$tdatacompany_addresses[".nSecOptions"] = 0;
$tdatacompany_addresses[".recsPerRowList"] = 1;	
$tdatacompany_addresses[".tableGroupBy"] = "0";
$tdatacompany_addresses[".mainTableOwnerID"] = "";
$tdatacompany_addresses[".moveNext"] = 1;




$tdatacompany_addresses[".showAddInPopup"] = false;

$tdatacompany_addresses[".showEditInPopup"] = false;

$tdatacompany_addresses[".showViewInPopup"] = false;


$tdatacompany_addresses[".fieldsForRegister"] = array();

$tdatacompany_addresses[".listAjax"] = true;

	$tdatacompany_addresses[".audit"] = false;

	$tdatacompany_addresses[".locking"] = false;
	
$tdatacompany_addresses[".listIcons"] = true;

$tdatacompany_addresses[".exportTo"] = true;

$tdatacompany_addresses[".printFriendly"] = true;


$tdatacompany_addresses[".showSimpleSearchOptions"] = true;

$tdatacompany_addresses[".showSearchPanel"] = true;


$tdatacompany_addresses[".isUseAjaxSuggest"] = true;

$tdatacompany_addresses[".rowHighlite"] = true;


// button handlers file names

$tdatacompany_addresses[".addPageEvents"] = false;


// use datepicker for search panel
$tdatacompany_addresses[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatacompany_addresses[".isUseTimeForSearch"] = false;

$tdatacompany_addresses[".isUseiBox"] = false;




$tdatacompany_addresses[".isUseInlineJs"] = $tdatacompany_addresses[".isUseInlineAdd"] || $tdatacompany_addresses[".isUseInlineEdit"];

$tdatacompany_addresses[".allSearchFields"] = array();

$tdatacompany_addresses[".globSearchFields"][] = "code";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("code", $tdatacompany_addresses[".allSearchFields"]))
{
	$tdatacompany_addresses[".allSearchFields"][] = "code";	
}
$tdatacompany_addresses[".globSearchFields"][] = "company_name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("company_name", $tdatacompany_addresses[".allSearchFields"]))
{
	$tdatacompany_addresses[".allSearchFields"][] = "company_name";	
}
$tdatacompany_addresses[".globSearchFields"][] = "category";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("category", $tdatacompany_addresses[".allSearchFields"]))
{
	$tdatacompany_addresses[".allSearchFields"][] = "category";	
}
$tdatacompany_addresses[".globSearchFields"][] = "display_name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("display_name", $tdatacompany_addresses[".allSearchFields"]))
{
	$tdatacompany_addresses[".allSearchFields"][] = "display_name";	
}
$tdatacompany_addresses[".globSearchFields"][] = "full_addr";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("full_addr", $tdatacompany_addresses[".allSearchFields"]))
{
	$tdatacompany_addresses[".allSearchFields"][] = "full_addr";	
}


$tdatacompany_addresses[".googleLikeFields"][] = "code";
$tdatacompany_addresses[".googleLikeFields"][] = "id";
$tdatacompany_addresses[".googleLikeFields"][] = "company_name";
$tdatacompany_addresses[".googleLikeFields"][] = "category";
$tdatacompany_addresses[".googleLikeFields"][] = "display_name";
$tdatacompany_addresses[".googleLikeFields"][] = "address";
$tdatacompany_addresses[".googleLikeFields"][] = "full_addr";
$tdatacompany_addresses[".googleLikeFields"][] = "pin_code";
$tdatacompany_addresses[".googleLikeFields"][] = "phone1";
$tdatacompany_addresses[".googleLikeFields"][] = "phone2";
$tdatacompany_addresses[".googleLikeFields"][] = "fax1";
$tdatacompany_addresses[".googleLikeFields"][] = "fax2";
$tdatacompany_addresses[".googleLikeFields"][] = "email";
$tdatacompany_addresses[".googleLikeFields"][] = "website";
$tdatacompany_addresses[".googleLikeFields"][] = "city_code";
$tdatacompany_addresses[".googleLikeFields"][] = "city_name";
$tdatacompany_addresses[".googleLikeFields"][] = "state_code";
$tdatacompany_addresses[".googleLikeFields"][] = "state_name";
$tdatacompany_addresses[".googleLikeFields"][] = "country_code";
$tdatacompany_addresses[".googleLikeFields"][] = "country_name";



$tdatacompany_addresses[".advSearchFields"][] = "code";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("code", $tdatacompany_addresses[".allSearchFields"])) 
{
	$tdatacompany_addresses[".allSearchFields"][] = "code";	
}
$tdatacompany_addresses[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatacompany_addresses[".allSearchFields"])) 
{
	$tdatacompany_addresses[".allSearchFields"][] = "id";	
}
$tdatacompany_addresses[".advSearchFields"][] = "company_name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("company_name", $tdatacompany_addresses[".allSearchFields"])) 
{
	$tdatacompany_addresses[".allSearchFields"][] = "company_name";	
}
$tdatacompany_addresses[".advSearchFields"][] = "category";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("category", $tdatacompany_addresses[".allSearchFields"])) 
{
	$tdatacompany_addresses[".allSearchFields"][] = "category";	
}
$tdatacompany_addresses[".advSearchFields"][] = "display_name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("display_name", $tdatacompany_addresses[".allSearchFields"])) 
{
	$tdatacompany_addresses[".allSearchFields"][] = "display_name";	
}
$tdatacompany_addresses[".advSearchFields"][] = "address";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("address", $tdatacompany_addresses[".allSearchFields"])) 
{
	$tdatacompany_addresses[".allSearchFields"][] = "address";	
}
$tdatacompany_addresses[".advSearchFields"][] = "full_addr";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("full_addr", $tdatacompany_addresses[".allSearchFields"])) 
{
	$tdatacompany_addresses[".allSearchFields"][] = "full_addr";	
}
$tdatacompany_addresses[".advSearchFields"][] = "pin_code";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("pin_code", $tdatacompany_addresses[".allSearchFields"])) 
{
	$tdatacompany_addresses[".allSearchFields"][] = "pin_code";	
}
$tdatacompany_addresses[".advSearchFields"][] = "phone1";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("phone1", $tdatacompany_addresses[".allSearchFields"])) 
{
	$tdatacompany_addresses[".allSearchFields"][] = "phone1";	
}
$tdatacompany_addresses[".advSearchFields"][] = "phone2";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("phone2", $tdatacompany_addresses[".allSearchFields"])) 
{
	$tdatacompany_addresses[".allSearchFields"][] = "phone2";	
}
$tdatacompany_addresses[".advSearchFields"][] = "fax1";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("fax1", $tdatacompany_addresses[".allSearchFields"])) 
{
	$tdatacompany_addresses[".allSearchFields"][] = "fax1";	
}
$tdatacompany_addresses[".advSearchFields"][] = "fax2";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("fax2", $tdatacompany_addresses[".allSearchFields"])) 
{
	$tdatacompany_addresses[".allSearchFields"][] = "fax2";	
}
$tdatacompany_addresses[".advSearchFields"][] = "email";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("email", $tdatacompany_addresses[".allSearchFields"])) 
{
	$tdatacompany_addresses[".allSearchFields"][] = "email";	
}
$tdatacompany_addresses[".advSearchFields"][] = "website";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("website", $tdatacompany_addresses[".allSearchFields"])) 
{
	$tdatacompany_addresses[".allSearchFields"][] = "website";	
}
$tdatacompany_addresses[".advSearchFields"][] = "city_code";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("city_code", $tdatacompany_addresses[".allSearchFields"])) 
{
	$tdatacompany_addresses[".allSearchFields"][] = "city_code";	
}
$tdatacompany_addresses[".advSearchFields"][] = "city_name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("city_name", $tdatacompany_addresses[".allSearchFields"])) 
{
	$tdatacompany_addresses[".allSearchFields"][] = "city_name";	
}
$tdatacompany_addresses[".advSearchFields"][] = "state_code";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("state_code", $tdatacompany_addresses[".allSearchFields"])) 
{
	$tdatacompany_addresses[".allSearchFields"][] = "state_code";	
}
$tdatacompany_addresses[".advSearchFields"][] = "state_name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("state_name", $tdatacompany_addresses[".allSearchFields"])) 
{
	$tdatacompany_addresses[".allSearchFields"][] = "state_name";	
}
$tdatacompany_addresses[".advSearchFields"][] = "country_code";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("country_code", $tdatacompany_addresses[".allSearchFields"])) 
{
	$tdatacompany_addresses[".allSearchFields"][] = "country_code";	
}
$tdatacompany_addresses[".advSearchFields"][] = "country_name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("country_name", $tdatacompany_addresses[".allSearchFields"])) 
{
	$tdatacompany_addresses[".allSearchFields"][] = "country_name";	
}

$tdatacompany_addresses[".isTableType"] = "list";


	

$tdatacompany_addresses[".isDisplayLoading"] = true;

$tdatacompany_addresses[".isResizeColumns"] = false;





$tdatacompany_addresses[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatacompany_addresses[".strOrderBy"] = $gstrOrderBy;
	
$tdatacompany_addresses[".orderindexes"] = array();

$tdatacompany_addresses[".sqlHead"] = "SELECT id,   code,   company_name,   category,   address,   pin_code,   phone1,   phone2,   fax1,   fax2,   email,   website,   display_name,   city_code,   city_name,   state_code,   state_name,   country_code,   country_name,   full_addr";
$tdatacompany_addresses[".sqlFrom"] = "FROM company_addresses";
$tdatacompany_addresses[".sqlWhereExpr"] = "";
$tdatacompany_addresses[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatacompany_addresses[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatacompany_addresses[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tdatacompany_addresses[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "company_addresses";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		
		
		
		
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacompany_addresses["id"]=$fdata;
//	code
	$fdata = array();
	$fdata["strName"] = "code";
	$fdata["ownerTable"] = "company_addresses";
		$fdata["Label"]="Code"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "code";
	
		$fdata["FullName"]= "code";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=5";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacompany_addresses["code"]=$fdata;
//	company_name
	$fdata = array();
	$fdata["strName"] = "company_name";
	$fdata["ownerTable"] = "company_addresses";
		$fdata["Label"]="Company Name"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "company_name";
	
		$fdata["FullName"]= "company_name";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=25";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacompany_addresses["company_name"]=$fdata;
//	category
	$fdata = array();
	$fdata["strName"] = "category";
	$fdata["ownerTable"] = "company_addresses";
		$fdata["Label"]="Category"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "category";
	
		$fdata["FullName"]= "category";
	
		
		
		
		
		
				$fdata["Index"]= 4;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=25";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacompany_addresses["category"]=$fdata;
//	address
	$fdata = array();
	$fdata["strName"] = "address";
	$fdata["ownerTable"] = "company_addresses";
		$fdata["Label"]="Address"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "address";
	
		$fdata["FullName"]= "address";
	
		
		
		
		
		
				$fdata["Index"]= 5;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacompany_addresses["address"]=$fdata;
//	pin_code
	$fdata = array();
	$fdata["strName"] = "pin_code";
	$fdata["ownerTable"] = "company_addresses";
		$fdata["Label"]="Pin Code"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "pin_code";
	
		$fdata["FullName"]= "pin_code";
	
		
		
		
		
		
				$fdata["Index"]= 6;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=25";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacompany_addresses["pin_code"]=$fdata;
//	phone1
	$fdata = array();
	$fdata["strName"] = "phone1";
	$fdata["ownerTable"] = "company_addresses";
		$fdata["Label"]="Phone1"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "phone1";
	
		$fdata["FullName"]= "phone1";
	
		
		
		
		
		
				$fdata["Index"]= 7;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacompany_addresses["phone1"]=$fdata;
//	phone2
	$fdata = array();
	$fdata["strName"] = "phone2";
	$fdata["ownerTable"] = "company_addresses";
		$fdata["Label"]="Phone2"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "phone2";
	
		$fdata["FullName"]= "phone2";
	
		
		
		
		
		
				$fdata["Index"]= 8;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacompany_addresses["phone2"]=$fdata;
//	fax1
	$fdata = array();
	$fdata["strName"] = "fax1";
	$fdata["ownerTable"] = "company_addresses";
		$fdata["Label"]="Fax1"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "fax1";
	
		$fdata["FullName"]= "fax1";
	
		
		
		
		
		
				$fdata["Index"]= 9;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacompany_addresses["fax1"]=$fdata;
//	fax2
	$fdata = array();
	$fdata["strName"] = "fax2";
	$fdata["ownerTable"] = "company_addresses";
		$fdata["Label"]="Fax2"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "fax2";
	
		$fdata["FullName"]= "fax2";
	
		
		
		
		
		
				$fdata["Index"]= 10;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacompany_addresses["fax2"]=$fdata;
//	email
	$fdata = array();
	$fdata["strName"] = "email";
	$fdata["ownerTable"] = "company_addresses";
		$fdata["Label"]="Email"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "email";
	
		$fdata["FullName"]= "email";
	
		
		
		
		
		
				$fdata["Index"]= 11;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacompany_addresses["email"]=$fdata;
//	website
	$fdata = array();
	$fdata["strName"] = "website";
	$fdata["ownerTable"] = "company_addresses";
		$fdata["Label"]="Website"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "website";
	
		$fdata["FullName"]= "website";
	
		
		
		
		
		
				$fdata["Index"]= 12;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacompany_addresses["website"]=$fdata;
//	display_name
	$fdata = array();
	$fdata["strName"] = "display_name";
	$fdata["ownerTable"] = "company_addresses";
		$fdata["Label"]="Display Name"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "display_name";
	
		$fdata["FullName"]= "display_name";
	
		
		
		
		
		
				$fdata["Index"]= 13;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacompany_addresses["display_name"]=$fdata;
//	city_code
	$fdata = array();
	$fdata["strName"] = "city_code";
	$fdata["ownerTable"] = "company_addresses";
		$fdata["Label"]="City Code"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "city_code";
	
		$fdata["FullName"]= "city_code";
	
		
		
		
		
		
				$fdata["Index"]= 14;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=5";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacompany_addresses["city_code"]=$fdata;
//	city_name
	$fdata = array();
	$fdata["strName"] = "city_name";
	$fdata["ownerTable"] = "company_addresses";
		$fdata["Label"]="City Name"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "city_name";
	
		$fdata["FullName"]= "city_name";
	
		
		
		
		
		
				$fdata["Index"]= 15;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=50";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacompany_addresses["city_name"]=$fdata;
//	state_code
	$fdata = array();
	$fdata["strName"] = "state_code";
	$fdata["ownerTable"] = "company_addresses";
		$fdata["Label"]="State Code"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "state_code";
	
		$fdata["FullName"]= "state_code";
	
		
		
		
		
		
				$fdata["Index"]= 16;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=5";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacompany_addresses["state_code"]=$fdata;
//	state_name
	$fdata = array();
	$fdata["strName"] = "state_name";
	$fdata["ownerTable"] = "company_addresses";
		$fdata["Label"]="State Name"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "state_name";
	
		$fdata["FullName"]= "state_name";
	
		
		
		
		
		
				$fdata["Index"]= 17;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=50";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacompany_addresses["state_name"]=$fdata;
//	country_code
	$fdata = array();
	$fdata["strName"] = "country_code";
	$fdata["ownerTable"] = "company_addresses";
		$fdata["Label"]="Country Code"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "country_code";
	
		$fdata["FullName"]= "country_code";
	
		
		
		
		
		
				$fdata["Index"]= 18;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=5";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacompany_addresses["country_code"]=$fdata;
//	country_name
	$fdata = array();
	$fdata["strName"] = "country_name";
	$fdata["ownerTable"] = "company_addresses";
		$fdata["Label"]="Country Name"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "country_name";
	
		$fdata["FullName"]= "country_name";
	
		
		
		
		
		
				$fdata["Index"]= 19;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=25";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacompany_addresses["country_name"]=$fdata;
//	full_addr
	$fdata = array();
	$fdata["strName"] = "full_addr";
	$fdata["ownerTable"] = "company_addresses";
		$fdata["Label"]="Full Addr"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "full_addr";
	
		$fdata["FullName"]= "full_addr";
	
		
		
		
		
		
				$fdata["Index"]= 20;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		
		
		
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacompany_addresses["full_addr"]=$fdata;

	
$tables_data["company_addresses"]=&$tdatacompany_addresses;
$field_labels["company_addresses"] = &$fieldLabelscompany_addresses;
$fieldToolTips["company_addresses"] = &$fieldToolTipscompany_addresses;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["company_addresses"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["company_addresses"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto370=array();
$proto370["m_strHead"] = "SELECT";
$proto370["m_strFieldList"] = "id,   code,   company_name,   category,   address,   pin_code,   phone1,   phone2,   fax1,   fax2,   email,   website,   display_name,   city_code,   city_name,   state_code,   state_name,   country_code,   country_name,   full_addr";
$proto370["m_strFrom"] = "FROM company_addresses";
$proto370["m_strWhere"] = "";
$proto370["m_strOrderBy"] = "";
$proto370["m_strTail"] = "";
$proto371=array();
$proto371["m_sql"] = "";
$proto371["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto371["m_column"]=$obj;
$proto371["m_contained"] = array();
$proto371["m_strCase"] = "";
$proto371["m_havingmode"] = "0";
$proto371["m_inBrackets"] = "0";
$proto371["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto371);

$proto370["m_where"] = $obj;
$proto373=array();
$proto373["m_sql"] = "";
$proto373["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto373["m_column"]=$obj;
$proto373["m_contained"] = array();
$proto373["m_strCase"] = "";
$proto373["m_havingmode"] = "0";
$proto373["m_inBrackets"] = "0";
$proto373["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto373);

$proto370["m_having"] = $obj;
$proto370["m_fieldlist"] = array();
						$proto375=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "company_addresses"
));

$proto375["m_expr"]=$obj;
$proto375["m_alias"] = "";
$obj = new SQLFieldListItem($proto375);

$proto370["m_fieldlist"][]=$obj;
						$proto377=array();
			$obj = new SQLField(array(
	"m_strName" => "code",
	"m_strTable" => "company_addresses"
));

$proto377["m_expr"]=$obj;
$proto377["m_alias"] = "";
$obj = new SQLFieldListItem($proto377);

$proto370["m_fieldlist"][]=$obj;
						$proto379=array();
			$obj = new SQLField(array(
	"m_strName" => "company_name",
	"m_strTable" => "company_addresses"
));

$proto379["m_expr"]=$obj;
$proto379["m_alias"] = "";
$obj = new SQLFieldListItem($proto379);

$proto370["m_fieldlist"][]=$obj;
						$proto381=array();
			$obj = new SQLField(array(
	"m_strName" => "category",
	"m_strTable" => "company_addresses"
));

$proto381["m_expr"]=$obj;
$proto381["m_alias"] = "";
$obj = new SQLFieldListItem($proto381);

$proto370["m_fieldlist"][]=$obj;
						$proto383=array();
			$obj = new SQLField(array(
	"m_strName" => "address",
	"m_strTable" => "company_addresses"
));

$proto383["m_expr"]=$obj;
$proto383["m_alias"] = "";
$obj = new SQLFieldListItem($proto383);

$proto370["m_fieldlist"][]=$obj;
						$proto385=array();
			$obj = new SQLField(array(
	"m_strName" => "pin_code",
	"m_strTable" => "company_addresses"
));

$proto385["m_expr"]=$obj;
$proto385["m_alias"] = "";
$obj = new SQLFieldListItem($proto385);

$proto370["m_fieldlist"][]=$obj;
						$proto387=array();
			$obj = new SQLField(array(
	"m_strName" => "phone1",
	"m_strTable" => "company_addresses"
));

$proto387["m_expr"]=$obj;
$proto387["m_alias"] = "";
$obj = new SQLFieldListItem($proto387);

$proto370["m_fieldlist"][]=$obj;
						$proto389=array();
			$obj = new SQLField(array(
	"m_strName" => "phone2",
	"m_strTable" => "company_addresses"
));

$proto389["m_expr"]=$obj;
$proto389["m_alias"] = "";
$obj = new SQLFieldListItem($proto389);

$proto370["m_fieldlist"][]=$obj;
						$proto391=array();
			$obj = new SQLField(array(
	"m_strName" => "fax1",
	"m_strTable" => "company_addresses"
));

$proto391["m_expr"]=$obj;
$proto391["m_alias"] = "";
$obj = new SQLFieldListItem($proto391);

$proto370["m_fieldlist"][]=$obj;
						$proto393=array();
			$obj = new SQLField(array(
	"m_strName" => "fax2",
	"m_strTable" => "company_addresses"
));

$proto393["m_expr"]=$obj;
$proto393["m_alias"] = "";
$obj = new SQLFieldListItem($proto393);

$proto370["m_fieldlist"][]=$obj;
						$proto395=array();
			$obj = new SQLField(array(
	"m_strName" => "email",
	"m_strTable" => "company_addresses"
));

$proto395["m_expr"]=$obj;
$proto395["m_alias"] = "";
$obj = new SQLFieldListItem($proto395);

$proto370["m_fieldlist"][]=$obj;
						$proto397=array();
			$obj = new SQLField(array(
	"m_strName" => "website",
	"m_strTable" => "company_addresses"
));

$proto397["m_expr"]=$obj;
$proto397["m_alias"] = "";
$obj = new SQLFieldListItem($proto397);

$proto370["m_fieldlist"][]=$obj;
						$proto399=array();
			$obj = new SQLField(array(
	"m_strName" => "display_name",
	"m_strTable" => "company_addresses"
));

$proto399["m_expr"]=$obj;
$proto399["m_alias"] = "";
$obj = new SQLFieldListItem($proto399);

$proto370["m_fieldlist"][]=$obj;
						$proto401=array();
			$obj = new SQLField(array(
	"m_strName" => "city_code",
	"m_strTable" => "company_addresses"
));

$proto401["m_expr"]=$obj;
$proto401["m_alias"] = "";
$obj = new SQLFieldListItem($proto401);

$proto370["m_fieldlist"][]=$obj;
						$proto403=array();
			$obj = new SQLField(array(
	"m_strName" => "city_name",
	"m_strTable" => "company_addresses"
));

$proto403["m_expr"]=$obj;
$proto403["m_alias"] = "";
$obj = new SQLFieldListItem($proto403);

$proto370["m_fieldlist"][]=$obj;
						$proto405=array();
			$obj = new SQLField(array(
	"m_strName" => "state_code",
	"m_strTable" => "company_addresses"
));

$proto405["m_expr"]=$obj;
$proto405["m_alias"] = "";
$obj = new SQLFieldListItem($proto405);

$proto370["m_fieldlist"][]=$obj;
						$proto407=array();
			$obj = new SQLField(array(
	"m_strName" => "state_name",
	"m_strTable" => "company_addresses"
));

$proto407["m_expr"]=$obj;
$proto407["m_alias"] = "";
$obj = new SQLFieldListItem($proto407);

$proto370["m_fieldlist"][]=$obj;
						$proto409=array();
			$obj = new SQLField(array(
	"m_strName" => "country_code",
	"m_strTable" => "company_addresses"
));

$proto409["m_expr"]=$obj;
$proto409["m_alias"] = "";
$obj = new SQLFieldListItem($proto409);

$proto370["m_fieldlist"][]=$obj;
						$proto411=array();
			$obj = new SQLField(array(
	"m_strName" => "country_name",
	"m_strTable" => "company_addresses"
));

$proto411["m_expr"]=$obj;
$proto411["m_alias"] = "";
$obj = new SQLFieldListItem($proto411);

$proto370["m_fieldlist"][]=$obj;
						$proto413=array();
			$obj = new SQLField(array(
	"m_strName" => "full_addr",
	"m_strTable" => "company_addresses"
));

$proto413["m_expr"]=$obj;
$proto413["m_alias"] = "";
$obj = new SQLFieldListItem($proto413);

$proto370["m_fieldlist"][]=$obj;
$proto370["m_fromlist"] = array();
												$proto415=array();
$proto415["m_link"] = "SQLL_MAIN";
			$proto416=array();
$proto416["m_strName"] = "company_addresses";
$proto416["m_columns"] = array();
$proto416["m_columns"][] = "id";
$proto416["m_columns"][] = "code";
$proto416["m_columns"][] = "company_name";
$proto416["m_columns"][] = "category";
$proto416["m_columns"][] = "address";
$proto416["m_columns"][] = "pin_code";
$proto416["m_columns"][] = "phone1";
$proto416["m_columns"][] = "phone2";
$proto416["m_columns"][] = "fax1";
$proto416["m_columns"][] = "fax2";
$proto416["m_columns"][] = "email";
$proto416["m_columns"][] = "website";
$proto416["m_columns"][] = "display_name";
$proto416["m_columns"][] = "city_code";
$proto416["m_columns"][] = "city_name";
$proto416["m_columns"][] = "state_code";
$proto416["m_columns"][] = "state_name";
$proto416["m_columns"][] = "country_code";
$proto416["m_columns"][] = "country_name";
$proto416["m_columns"][] = "full_addr";
$obj = new SQLTable($proto416);

$proto415["m_table"] = $obj;
$proto415["m_alias"] = "";
$proto417=array();
$proto417["m_sql"] = "";
$proto417["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto417["m_column"]=$obj;
$proto417["m_contained"] = array();
$proto417["m_strCase"] = "";
$proto417["m_havingmode"] = "0";
$proto417["m_inBrackets"] = "0";
$proto417["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto417);

$proto415["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto415);

$proto370["m_fromlist"][]=$obj;
$proto370["m_groupby"] = array();
$proto370["m_orderby"] = array();
$obj = new SQLQuery($proto370);

$queryData_company_addresses = $obj;
$tdatacompany_addresses[".sqlquery"] = $queryData_company_addresses;

$tableEvents["company_addresses"] = new eventsBase;

?>
